package com.edt.ichannel.admin.web;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"com.edt.ichannel.admin.**"})
@MapperScan({"com.edt.ichannel.admin.**.dao"})
@EnableTransactionManagement
public class IchannelAdminWebApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(IchannelAdminWebApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(IchannelAdminWebApplication.class);
    }

}
